package com.nowcoder.community.util;

public class CommunityConstant {
    // 激活重复
    public static final int ACTIVATE_REPEAT = 0;
    // 激活失败
    public static final int ACTIVATE_SUCCESS = 1;
    // 激活成功
    public static final int ACTIVATE_FAILURE = 2;

    // 默认登录持续时间：8小时
    public static final int LOGIN_DEFAULT_EXPIRE_TIME = 3600 * 8;
    // 记住我状态，登陆持续时间：30天
    public static final int LOGIN_REMEMBER_EXPIRE_TIME = 3600 * 24 * 30;

    // 实体类型：帖子
    public static final int ENTITY_TYPE_POST = 1;
    // 实体类型：评论
    public static final int ENTITY_TYPE_COMMENT = 2;
    // 实体类型：用户
    public static final int ENTITY_TYPE_USER = 3;

    // kafka事件主题：评论
    public static final String TOPIC_COMMENT = "comment";
    // kafka事件主题：赞
    public static final String TOPIC_LIKE = "like";
    // kafka事件主题：关注
    public static final String TOPIC_FOLLOW = "follow";
    // kafka事件主题：发新帖子（或帖子信息有更改）
    public static final String TOPIC_PUBLISH = "publish";
    // kafka事件主题：删除帖子
    public static final String TOPIC_DELETE = "delete";

    // 系统用户id
    public static final int SYSTEM_USER_ID = 1;

    // 权限: 普通用户
    public static final String AUTHORITY_USER = "user";
    // 权限: 管理员
    public static final String AUTHORITY_ADMIN = "admin";
    // 权限: 版主
    public static final String AUTHORITY_MODERATOR = "moderator";

}
